package com.totoro.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.totoro.dao.BaseHibernateDao;
import com.totoro.dao.ProjectCategoryDao;
import com.totoro.domain.ProjectCategory;

@Transactional
@Service
public class ProjectCategoryService extends BaseService<ProjectCategory, Integer>{

	private static final Logger LOGGER = LoggerFactory.getLogger(ProjectCategoryService.class);
	
	private ProjectCategoryDao projectCategoryDao;
	
	public ProjectCategoryService(){
		LOGGER.info("ProjectCategoryService()  初始化ProjectCategoryDao..." + projectCategoryDao);
		System.out.println("ProjectCategoryService()  初始化ProjectCategoryDao..." + projectCategoryDao);
	}
	
	
	@Autowired
	@Override
	public void setBaseDao(BaseHibernateDao<ProjectCategory, Integer> projectCategoryDao) {
		this.baseDao = projectCategoryDao;
		this.projectCategoryDao = (ProjectCategoryDao) projectCategoryDao;
		LOGGER.info("初始化ProjectCategoryDao..." + projectCategoryDao);
		System.out.println("setBaseDao  初始化ProjectCategoryDao..." + projectCategoryDao);
	}

}
